const merge = require('webpack-merge')
const webpack = require('webpack')
const common = require('./webpack.common')

module.exports = merge(common, {
    mode: 'development',
    devServer:{
        contentBase: './public',
        hot: true,
        proxy: {
            '/api': {
                target: 'http://api.map.baidu.com', // 随便找了个百度地图的API假装接口
                pathRewrite: {
                    '^/api': ''
                },
                changeOrigin: true
            }
        }
    }
}) 